package com.good.shopping.order.feign;

import com.good.common.base.ServiceConstant;
import com.good.shopping.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 会员服务  member
 * @author shengren.yan
 * @create 2022-03-15
 **/

@FeignClient(value = ServiceConstant.SERVICE_MEMBER_NAME)
public interface MemberFeignService {

    /**
     * 查询当前用户的全部收货地址
     * @param memberId
     * @return
     */
    @GetMapping(value = "/member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);


}
